// 人员表单，组件配置（ 限制可操作权限项 ）
import {deepCopy} from '@/utils/tools'
export default (powerConf, data):any =>{

    data = deepCopy(data)

    let powerMod = data['newForm']['power'];
        
    Object.keys(powerMod).forEach(modKey =>{

        let mods = powerMod[modKey]['mods']
        let cache = []
        mods.forEach(mod =>{

            if(powerConf[mod.key]){
                cache.push(mod)
            }
            
        })
        
        powerMod[modKey]['mods'] = cache
        
    })

    return data
    
}